package com.tarena.lbs.service;

import com.tarena.lbs.entity.CouponCode;

import java.util.List;

public interface CouponCodeService {
    CouponCode getCouponCodeByCode(String couponCode);
    List<CouponCode> listAvailableCodesByCouponId(Integer couponId, Integer count);
    boolean updateCouponCodeStatus(Integer id, Integer status);
    boolean batchInsertCouponCodes(List<CouponCode> codes);
    // 生成优惠券码
    String generateCouponCode();
}